<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06绝对定位</title>
  <style>
    .f1{
        background-color: #ff0;
        width: 500px;
        position: relative;
    }
    .f1>div{
        width: 100px;
        height: 100px;
    }
    .z1{
        background-color: red;
    }
    .z2{
        background-color: green;
        position: absolute;
        right: 0;
        top: 0;
    }
    .z3{
        background-color: blue;
    }
  </style>
</head>
<body>
<div class="f1">
  <div class="z1"></div>
  <div class="z2"></div>
  <div class="z3"></div>
</div>
</body>
</html>